﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Community.CsharpSqlite
{
    class P5Value
    {


        /*
    ** Bitfield flags for P5 value in OPCode.OP_Insert and OPCode.OP_Delete
    */
        //#define P5Value.OPFLAG_NCHANGE       0x01    /* Set to update db->nChange */
        //#define P5Value.OPFLAG_LASTROWID     0x02    /* Set to update db->lastRowid */
        //#define P5Value.OPFLAG_ISUPDATE      0x04    /* This OPCode.OP_Insert is an sql UPDATE */
        //#define P5Value.OPFLAG_APPEND        0x08    /* This is Utility.Likely to be an append */
        //#define P5Value.OPFLAG_USESEEKRESULT 0x10    /* Try to avoid a seek in BtreeInsert() */
        //#define P5Value.OPFLAG_CLEARCACHE    0x20    /* Clear pseudo-table cache in OPCode.OP_Column */
        public const byte OPFLAG_NCHANGE = 0x01;
        public const byte OPFLAG_LASTROWID = 0x02;
        public const byte OPFLAG_ISUPDATE = 0x04;
        public const byte OPFLAG_APPEND = 0x08;
        public const byte OPFLAG_USESEEKRESULT = 0x10;
        public const byte OPFLAG_CLEARCACHE = 0x20;
    }
}
